const asyncRead = require('./asyncRead');

const testInner = async () => {
  try {
    console.log('begin testInner');
    const data = await asyncRead('testfs');
    console.log('asyncRead ok :', data);
  } catch (err) {
    console.log('asyncRead err :', err);
  }
};

const testOuter = async () => {
  console.log('begin testOuter');
  await testInner();
  console.log('test end');
};

const a = testOuter();
console.log('all end');
